﻿using System.Collections.Generic;
using System.Linq;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.BaseQueryModel;

namespace ZBJF.Warranty.IBLL
{
    public partial interface ISellerEmployeeRoleService
    {

        bool IsExistRoleName(string roleName, long id = 0);
        /// <summary>
        /// 根据角色编码和ID 判断是否存在该员工
        /// </summary>
        /// <param name="roleCode"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        bool IsExistRoleCode(string roleCode, long id = 0);
        /// <summary>
        /// 根据角色ID获取对应角色信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        SellerEmployeeRole LoadByID(long id);
        /// <summary>
        /// 获取所有员工角色
        /// </summary>
        /// <returns></returns>
        IQueryable<SellerEmployeeRole> LoadAll();

        IQueryable<SellerEmployeeRole> GetPagingList(BaseQueryParams model, out int total);
    }
}